<%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2022/7/6
  Time: 18:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>$Title$</title>
  <script src="${pageContext.request.contextPath}/statics/js/jquery-3.6.0.js"></script>

  <script>
    function action(){
      $.post({
        url:"${pageContext.request.contextPath}/a1",
        data:{"name":$("#username").val()},
        success:function (data){
          alert(data);
        }

      })
    }
  </script>
</head>
<body>
用户名：<input type="text" id="username" onblur="action()">
</body>
</html>
